package assignments;

public class Foo1 {
	static int size = 7;
	static void changeIt(int size) {
		size = size + 200;
		System.out.println("size in changeIt(int) is " + size);
	}
	static void changeIt(Foo1 f) {
		f.size += 1;
		System.out.println("size in changeIt(Foo1) is " + size);
	}
	
	public static void main(String[] args) {
		Foo1 f = new Foo1();
		System.out.println("size = " + size);
		changeIt(size);
		System.out.println("size after changeIt(int) is " + size);
		changeIt(f);
		System.out.println("size after changeIt(Foo1) is " + size);
		
		
		Foo2 f2 = new Foo2();
		System.out.println("weight = " + Foo2.weight);
	}
}

class Foo2 {
	static int weight = 100;
}
